<?php
//Note: the object method will convert the posts array into a json string, just like the jsonComponent.
echo json_encode($datum);
?>